package com.ellricky.baselib.ui

import android.view.View
import androidx.fragment.app.Fragment
import com.andr.common.ui.fragment.BaseFragment
import com.andr.common.ui.mvp.BasePresenter
import com.ellricky.baselib.R
import kotlinx.android.synthetic.main.base_fragment_active_doc2.*

class ClassActiveDocFragment : BaseFragment<Void, BasePresenter<Void>>() {

    override fun getContentLayout(): Int {
        return R.layout.base_fragment_active_doc2
    }

    companion object {
        fun newInstance(): ClassActiveDocFragment {
            return ClassActiveDocFragment()
        }
    }

    override fun initUIView(p0: View?) {
        val frgList = arrayListOf<Fragment>(
            ActiveDocChildFragment.newInstance(),
            ActiveDocClassFragment.newInstance(),
        )

        val tList = listOf("活动资料", "近期课程")
        tabLayout.setUp(childFragmentManager, frgList, tList, vp)
    }
}